;
(function () {
    $.ajax({
        type: 'get',
        url: 'http://127.0.0.1:3000/isLogin',
        success: function (backData) {
            if (backData.data == undefined) {
                alert('请登录'),
                    window.location.href = './login.html'
            }
        }
    })
}())